<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns current buffer</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xmlwriter-open-uri.html">XMLWriter::openURI</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xmlwriter-set-indent-string.html">XMLWriter::setIndentString</a></div>
 <div class="up"><a href="ref.xmlwriter.html">XMLWriter 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.xmlwriter-output-memory" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XMLWriter::outputMemory</h1>
  <h1 class="refname">xmlwriter_output_memory</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PECL xmlwriter &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">XMLWriter::outputMemory</span> -- <span class="refname">xmlwriter_output_memory</span> &mdash; <span class="dc-title">Returns current buffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.xmlwriter-output-memory-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>XMLWriter::outputMemory</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$flush</code><span class="initializer"> = true</span></span>
  ] )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>xmlwriter_output_memory</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$xmlwriter</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$flush</code><span class="initializer"> = true</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Returns the current buffer.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.xmlwriter-output-memory-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<em><code class="parameter">
xmlwriter</code></em></dt>
<dd>
<p class="para">仅用于过程调用。被修改的 XMLWriter <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>。此资源来自于对 <span class="function"><a href="function.xmlwriter-open-uri.html" class="function">xmlwriter_open_uri()</a></span> 或
<span class="function"><a href="function.xmlwriter-open-memory.html" class="function">xmlwriter_open_memory()</a></span> 的调用。</p></dd>

    
     <dt>
<em><code class="parameter">flush</code></em></dt>

     <dd>

      <p class="para">
       Whether to flush the output buffer or not. Default is <strong><code>TRUE</code></strong>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xmlwriter-output-memory-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the current buffer as a string.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xmlwriter-output-memory-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="function.xmlwriter-flush.html" class="methodname" rel="rdfs-seeAlso">XMLWriter::flush()</a> - Flush current buffer</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xmlwriter-open-uri.html">XMLWriter::openURI</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xmlwriter-set-indent-string.html">XMLWriter::setIndentString</a></div>
 <div class="up"><a href="ref.xmlwriter.html">XMLWriter 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
